#include <jni.h>
#include <string>
#include "demo/Hello.h"
#include <iostream>
using namespace std;

extern "C" JNIEXPORT jstring JNICALL
Java_com_tensor_skynet_MainActivity_stringFromJNI(
        JNIEnv* env,
        jobject jobject1 /* this */) {
    Hello hello1;
    std::string hello = "Hello from C++ "+to_string(hello1.hello());

    return env->NewStringUTF(hello.c_str());
}
extern "C"
JNIEXPORT void JNICALL
Java_com_tensor_skynet_MainActivity_cppCallJava(JNIEnv *env, jobject thiz) {
    Hello hello1;
    hello1.callObjectMethod(env,thiz);
}

extern "C"
JNIEXPORT jstring JNICALL
Java_com_tensor_skynet_jni_JNIUtils_callJNIUtilsHello(JNIEnv *env, jobject thiz) {
    // TODO: implement callJNIUtilsHello()
    Hello hello1;
    return hello1.callJavaHello(env,thiz);
}